package o;

import android.content.Context;
import com.huawei.appmarket.service.settings.view.ContentGradeListActivityProtocol;
import com.huawei.appmarket.service.settings.view.ContentGradeListActivityProtocol.Request;
import com.huawei.appmarket.service.settings.view.GotoHealthDialogActivityProtocol;

public class egu {

    public static class a {
        boolean ˎ;
        String ˏ;
        String ॱ;

        public void ˋ(String str) {
            this.ˏ = str;
        }

        public void ॱ(String str) {
            this.ॱ = str;
        }

        public void ˋ(boolean z) {
            this.ˎ = z;
        }

        public boolean ˏ() {
            return this.ˎ;
        }
    }

    public static cjm ˏ(a aVar) {
        String str = null;
        boolean z = true;
        if (!egv.ॱᐝ().ॱˎ() || egv.ॱᐝ().ʻॱ()) {
            boolean z2;
            cjo contentGradeListActivityProtocol = new ContentGradeListActivityProtocol();
            Request request = new Request();
            request.ˊ(aVar != null ? aVar.ˏ : null);
            if (aVar != null) {
                str = aVar.ॱ;
            }
            request.ˏ(str);
            if (aVar == null || !aVar.ˏ()) {
                z2 = false;
            } else {
                z2 = true;
            }
            request.ॱ(z2);
            contentGradeListActivityProtocol.ॱ(request);
            return new cjm("content.grade.list.activity", contentGradeListActivityProtocol);
        }
        cjo gotoHealthDialogActivityProtocol = new GotoHealthDialogActivityProtocol();
        GotoHealthDialogActivityProtocol.Request request2 = new GotoHealthDialogActivityProtocol.Request();
        if (aVar == null || !aVar.ˏ()) {
            z = false;
        }
        request2.ˋ(z);
        gotoHealthDialogActivityProtocol.ˏ(request2);
        return new cjm("goto.health.dialog.activity", gotoHealthDialogActivityProtocol);
    }

    public static void ˎ(Context context, a aVar) {
        cjk.ˎ().ˋ(context, ˏ(aVar));
    }
}
